home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2133 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: locutus.rchland.ibm.com!usenet
  2. From: pstaite@vnet.ibm.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: How can I access more than 64Kb of RAM?
  5. Date: 15 Jan 1996 15:40:39 GMT
  6. Organization: IBM OS/2 Device Driver Development  Rochester, MN
  7. Message-ID: <4ddshn$188e@locutus.rchland.ibm.com>
  8. References: <4d9010$r6v@mother.usf.edu>
  9. Reply-To: pstaite@vnet.ibm.com
  10. NNTP-Posting-Host: warpone.rchland.ibm.com
  11. X-Newsreader: IBM NewsReader/2 v1.2
  12.  
  13. In <4d9010$r6v@mother.usf.edu>, Christopher Caranna <ccaranna@soleil.acomp.usf.edu> writes:
  14. >     I own a computer with 32Mb of RAM. Unfortunately, I have no idea how 
  15. >to access more than 64Kb (one segment) of it. I would greatly appreciate 
  16. >it if someone would recommend some books that would help explain how to 
  17. >get around this. The technical manuals included with Borland C++ are not 
  18. >clear on this problem.
  19.  
  20. First choice:  get OS/2 Warp and VisualAge C++. ;-)  You get a _flat_
  21. memory model (out to 512 MB) with demand-paged virtual memory, true
  22. pre-emptive multitasking and multithreading etc.   Programming without
  23. limits (as compared to DOS...). <end commercial>
  24.  
  25. Second choice, check out the "huge" keyword/extension used by Borland. 
  26. This allows you to point to big buffers (greater than 64K) as in:
  27.  
  28. char huge *pBigBuf;
  29.  
  30. And you'll need to allocate space with halloc().  Of course, you'll 
  31. still be limited to 640K DOS memory unless you program using one of the 
  32. DOS extenders to map EMS/XMS memory...
  33.  
  34. Of course, the Unix types reading this are laughing saying "what's the 
  35. big deal..."
  36.  
  37.  
  38. Phil Staite, team OS/2
  39. internet: pstaite@vnet.ibm.com  internal: pstaite@rchland
  40.  
  41.